package com.gxxy.spring.kp02_modules.cls03_annotation.s4_exercise;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

@Controller
public class StudentAction {
	
	@Autowired
	private StudentService service;
	
	public void save() {
		Student stu = new Student();
		
		// 从HTTPServletRequest中获取参数
		
		stu.setAge(18);
		stu.setName("张飞");
		
		service.save(stu);
	}
	
}
